package com.zjk.search.feign;

import com.zjk.search.SearchItem;
import com.zjk.search.feign.impl.SpuFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @author: gfk
 * @create: 2022/10/26
 * @Description:
 * @FileName: SpuFeignClient
 * @History:
 * @自定义内容：
 */
@FeignClient(value = "guli-service-product",fallback = SpuFeignClientImpl.class)
public interface SpuFeignClient {
    @PostMapping("product/spu/findSearchItemList")
    public List<SearchItem> findSearchItemList(@RequestBody Map searchMap);
}
